%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Getting started to develop Libreswan}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Setup your libreswan development box}
 
\subsection{CentOS 6.3}
This prcedure is tested on CentOS 6.3, should works for other version of CentOS.
\subsubsection{OS}
\begin{description}
\item[item1]
\item[item2]
\end{description}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{Ubuntu}
 
\subsection{OS}
\begin{description}
\item[item1]
\item[item2]
\end{description}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{Debian}
 
\subsection{OS}

\begin{description}
\item[item1]
\item[item2]
\end{description}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Getting Source}

\begin{figure}[H]
\caption{GCE Host to Intranet via VPN}
\label{fig:GCE-Host-to-Intranet-via-VPN}
\begin{center}
\includegraphics[scale=0.65]{dia/gce-host-network-vpn.pdf}
\end{center}
\end{figure}

\subsubsection{from https://code.google/p/libreswan}

\begin{description}
\item[item1]
\item[item2]
\end{description}

\subsubsection{Read only from https://github/tjyang/libreswan}

\begin{description}
\item[item1]
\item[item2]
\end{description}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{compile source}

\begin{figure}[H]
\caption{GCE Host to Intranet via VPN}
\label{fig:GCE-Host-to-Intranet-via-VPN}
\begin{center}
\includegraphics[scale=0.65]{dia/gce-network-network-vpn.pdf}
\end{center}
\end{figure}

\begin{description}
\item[item1]
\item[item2]
\end{description}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\section{create package}

\begin{figure}[H]
\caption{GCE Host to Intranet via VPN}
\label{fig:GCE-Host-to-Intranet-via-VPN}
\begin{center}
\includegraphics[scale=0.65]{dia/gce-xymon-failover-drbd.pdf}
\end{center}
\end{figure}

\subsubsection{Create CentOS/RHEL/Fedora package}

\begin{description}
\item[item1]
\item[item2]
\end{description}
\subsubsection{Create Debian}
\begin{description}
\item[item1]
\item[item2]
\end{description}

\subsubsection{Create Ubuntu}
\begin{description}
\item[item1]
\item[item2]
\end{description}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{Upload book to  Google libreswan project}

\begin{figure}[H]
\caption{GCE Host to Intranet via VPN}
\label{fig:GCE-Host-to-Intranet-via-VPN}
\begin{center}
\includegraphics[scale=0.65]{dia/libreswan-testcase1.pdf}
\end{center}
\end{figure}

\begin{compactenum}
\item leve1 1
\VerbatimInput[fontsize=\tiny]{txt/gupload.txt}
\item level 1
\VerbatimInput[fontsize=\tiny]{txt/gupload.txt}
\end{compactenum}


\subsection{upload the book}
%\lstset{basicstyle=\tiny\color{black}}
%\lstinputlisting[language=bash,caption=Upload to google site]{txt/gupload.txt}
\VerbatimInput[fontsize=\tiny]{txt/gupload.txt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\section{Distributed GIT syncronization}

\begin{figure}[H]
\caption{GCE Host to Intranet via VPN}
\label{fig:GCE-Host-to-Intranet-via-VPN}
\begin{center}
\includegraphics[scale=0.65]{dia/gce-host-network-vpn.pdf}
\end{center}
\end{figure}

\begin{compactenum}
\item leve1 1
      \begin{compactenum} 
      \item leve1 2
      \item leve1 2
      \end{compactenum}
\item Steps to add github upstream  
      \begin{compactenum} 
      \item leve1 2
      \item leve1 2
       \VerbatimInput[fontsize=\tiny]{txt/tbc.txt}
      \end{compactenum}
\VerbatimInput[fontsize=\tiny]{txt/git-repository.txt}
\end{compactenum}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\section{gce-network-network-vpn-drbd}

\begin{figure}[H]
\caption{GCE Host to Intranet via VPN}
\label{fig:GCE-Host-to-Intranet-via-VPN}
\begin{center}
\includegraphics[scale=0.65]{dia/gce-network-network-vpn-drbd.pdf}
\end{center}
\end{figure}

\begin{description}
\item[item1]
\item[item2]
\end{description}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\section{gce-intranet}
\begin{figure}[H]
\caption{GCE Host to Intranet via VPN}
\label{fig:GCE-Host-to-Intranet-via-VPN}
\begin{center}
\includegraphics[scale=0.65]{dia/gce-intranet}
\end{center}
\end{figure}
\begin{description}
\item[item1]
\item[item2]
\end{description}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{gce-ssh-vpn}
\begin{figure}[H]
\caption{GCE Host to Intranet via VPN}
\label{fig:GCE-Host-to-Intranet-via-VPN}
\begin{center}
\includegraphics[scale=0.65]{dia/gce-ssh-vpn}		    
\end{center}
\end{figure}
\begin{description}
\item[item1]
\item[item2]
\end{description}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{pluto-daemons}
\begin{figure}[H]
\caption{GCE Host to Intranet via VPN}
\label{fig:GCE-Host-to-Intranet-via-VPN}
\begin{center}
\includegraphics[scale=0.65]{dia/pluto-daemons.pdf}
\end{center}
\end{figure}
\begin{description}
\item[item1]
\item[item2]
\end{description}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

